from thrift.transport import  TTransport
from thrift.transport import TSocket
from thrift.transport import THttpClient
from thrift.protocol import  TBinaryProtocol
import hbase




host = '10.0.1.171'
port = '9090'
framed =False

socket = TSocket.TSocket(host,port)
if framed:
    transport = TTransport.TFramedTransport(socket)
else:
    transport = TTransport.TBufferedTransport(socket)

protocal = TBinaryProtocol.TBinaryProtocol(transport)

transport.open()

table = 'table1'
